const copyObject = (source) => { // deep clone object
  let result = {}
  for (let key in source) {
    result[key] = (typeof source[key] === 'object') && ((source[key] instanceof Array) === false) ? copyObject(source[key]) : source[key]
  }
  return result
}
export default copyObject
